refactor(shared): improve error handling with structured error types#2
Open
johnleider wants to merge 1 commit intomainfrom
Open
refactor(shared): improve error handling with structured error types#2johnleider wants to merge 1 commit intomainfrom
johnleider wants to merge 1 commit intomainfrom
Conversation
Add VuetifyCliError base class with actionable suggestions to help developers resolve issues quickly. Each error type provides context-aware messages based on the failure mode (network, permissions, syntax, etc). Changes: - Add errors.ts with structured error types (TemplateDownloadError, TemplateCopyError, FeatureApplyError, DependencyInstallError, etc) - Update scaffold.ts to throw typed errors with suggestions - Update create.ts to format errors with suggestions for users - Update analyze.ts to track and report file parse failures - Update console reporter to display skipped files with reasons - Add parseErrors field to AnalyzeReport for programmatic access
10104fd to
3457b7c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves developer experience by providing actionable error messages instead of generic failures. Users now see:
Error Types Added
TemplateDownloadErrorTemplateCopyErrorFeatureApplyErrorDependencyInstallErrorFileParseErrorDirectoryNotFoundErrorAnalyze Command Improvements
Files that fail to parse are now:
parseErrorsfield)Before:
After:
Test plan
pnpm build)